<template>
	<view>
		<view class="box">
			<u-steps current="0"  direction="column" activeColor="#882027">
				<u-steps-item title="已下单" desc="10:30">
				</u-steps-item>
				<u-steps-item title="已出库" desc="10:35"></u-steps-item>
				<u-steps-item title="运输中" desc="11:40"></u-steps-item>
			</u-steps>
		</view>
		<view class="size-28 bold mt-30 ml-30">订单详情</view>
		<view class="box size-24" style="line-height: 38rpx;">
			<view class="flex">
				<view class="size-28">订单编号</view>
				<view class="size-28" style="color: #999;">{{data.order_sn}}</view>
			</view>
			<view class="flex mt-20">
				<view class="size-28">创建时间</view>
				<view class="size-28" style="color: #999;">{{data.create_time}}</view>
			</view>
			<view class="flex mt-20">
				<view class="size-28">付款时间</view>
				<view class="size-28" style="color: #999;">{{data.pay_time}}</view>
			</view>
		</view>
		<view class="box size-24" style="line-height: 38rpx;">
			<view class="flex">
				<view class="size-28">收货人名称</view>
				<view class="size-28">{{data.patient_name}}</view>
			</view>
			<view class="flex mt-20">
				<view class="size-28">收货人手机号</view>
				<view class="size-28">{{data.patient_mobile}}</view>
			</view>
			<view class="flex mt-20">
				<view class="size-28">收货人地址</view>
				<view class="size-28" style="width: 384rpx;text-align: right;">{{data.patient_address}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				data:{}
			};
		},
		onLoad(op) {
			this.id = op.id
			this.logistics()
		},
		methods: {
			logistics() {
				this.$api.getDeliverInfo({
					order_id:this.id
				}).then(res => {
					this.data = res.data
				})
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f8f8f8;
	}

	.box {
		width: 690rpx;
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		opacity: 1;
		margin: 30rpx auto 0;
		padding: 30rpx;
	}

	.active {
		width: 200rpx;
		height: 200rpx;
		margin-right: 20rpx;
		border-radius: 30rpx;
		background-color: pink;
	}
</style>